/**
 * 费用结算返还单
 */
app.controller('btnCtrl', ['$scope', '$http', BtnController]);
function BtnController($scope, $http){
    console.log('------$scope.menuId1-----', $scope.menuId);
    console.log('------$scope.buttonArr1-----', $scope.buttonArr);

    $scope.bindBtn = function(event) {
        var datas = $scope.getSelectedRows();
        switch(event){
            case 'event-to-add':
            {
                window.top.add_tab("费用结算返还单 - 新增","/web/finance/tcwExpenseSettleReturn/toAdd");
                break;
            }
            case 'event-to-export':
            {
                $scope.doExport('/api/inter/tcwExpenseSettleReturn/export');
                break;
            }



        };
    }
}

//表格双击
app.controller('dbClickCtrl', ['$scope', '$http', DbClickController]);
function DbClickController($scope, $http){
    $scope.doubleClick = function(data) {
        window.top.add_tab('费用结算返还单 - 编辑','/web/finance/tcwExpenseSettleReturn/toEdit?bid=' + data.bid);
    }
}





